/**
 * 订单接口
 * anthor liyingqi
 *  834777203@qq.com
 */

import { request } from "@/http/axios"
import type * as Order from './type';


// 获取订单列表
export function getOrderDataApi(data: Order.OrderRequestData) {
  return request<Order.OrderResponseData>({
    url: "?s=ApiBusiness/orderlist",
    method: "post",
    data
  })
}


// 合同提交接口
export function orderHtPost(data: Order.ConcatCreateData) {
  return request({
    url: "?s=ApiBusiness/order_ht",
    method: "post",
    data
  })
}

type obj = {
  name: string,
  type: string,
  url: string,
}
// 获取合同接口
export function getHtPost(data: {orderid:number}) {
  return request<ApiResponseData<{
    jyht: obj,
    hwqd: obj,
    shmzxy: obj,
  }>>({
    url: "?s=ApiBusiness/order_info",
    method: "post",
    data
  })
}








